//
//  BaseViewController.m
//  ShangWuTong
//
//  Created by 孙家文 on 16/4/8.
//  Copyright © 2016年 zjwy. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self initialData];
    
    [self setupUI];
}

- (void)setupUI {

}

- (void)initialData {

}

/**
 *  判断字符串是否无内容
 *
 *  @param string 要判断的字符串
 *
 *  @return YES:没有内容    NO：有内容
 */
- (BOOL)isBlankString:(NSString *)string {
    if (string == nil || string == NULL) {
        return YES;
    }
    if ([string isKindOfClass:[NSNull class]]) {
        return YES;
    }
    if ([[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length] == 0) {
        return YES;
    }
    return NO;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}


- (NSString *)jw_className {
    return NSStringFromClass([self class]);
}
@end
